import {defineStore} from 'pinia'
import {ref} from "vue";

export const useMainStore = defineStore('main', () => {
    /*当前页名*/
    let pageName = ref('')
    /*侧边栏是否折叠*/
    let isCollapse = ref(false)
    /*显示的所有路由*/
    let routes = ref([])
    return {
        pageName,
        routes,
        isCollapse
    }
})
